.class Lcom/baidu/ao;
.super Ljava/lang/Thread;


# instance fields
.field final synthetic a:Lcom/baidu/an;


# direct methods
.method constructor <init>(Lcom/baidu/an;)V
    .locals 0

    iput-object p1, p0, Lcom/baidu/ao;->a:Lcom/baidu/an;

    invoke-direct {p0}, Ljava/lang/Thread;-><init>()V

    return-void
.end method


# virtual methods
.method public run()V
    .locals 5

    const/4 v4, 0x0

    iget-object v0, p0, Lcom/baidu/ao;->a:Lcom/baidu/an;

    iget-object v0, v0, Lcom/baidu/an;->a:Lcom/baidu/App$Snag;

    invoke-virtual {v0}, Lcom/baidu/App$Snag;->getFullBmp()Landroid/graphics/Bitmap;

    move-result-object v0

    if-nez v0, :cond_0

    iget-object v0, p0, Lcom/baidu/ao;->a:Lcom/baidu/an;

    iget-object v0, v0, Lcom/baidu/an;->b:Lcom/baidu/aj;

    iget-object v0, v0, Lcom/baidu/aj;->b:Lcom/baidu/AppActivity;

    const/4 v1, 0x1

    invoke-static {v0, v1}, Lcom/baidu/AppActivity;->a(Lcom/baidu/AppActivity;Z)V

    :try_start_0
    iget-object v0, p0, Lcom/baidu/ao;->a:Lcom/baidu/an;

    iget-object v0, v0, Lcom/baidu/an;->a:Lcom/baidu/App$Snag;

    iget-object v1, p0, Lcom/baidu/ao;->a:Lcom/baidu/an;

    iget-object v1, v1, Lcom/baidu/an;->b:Lcom/baidu/aj;

    iget-object v1, v1, Lcom/baidu/aj;->a:Landroid/app/Activity;

    new-instance v2, Ljava/net/URL;

    iget-object v3, p0, Lcom/baidu/ao;->a:Lcom/baidu/an;

    iget-object v3, v3, Lcom/baidu/an;->a:Lcom/baidu/App$Snag;

    invoke-virtual {v3}, Lcom/baidu/App$Snag;->getFullUrl()Ljava/lang/String;

    move-result-object v3

    invoke-direct {v2, v3}, Ljava/net/URL;-><init>(Ljava/lang/String;)V

    invoke-static {v1, v2}, Lcom/baidu/w;->a(Landroid/content/Context;Ljava/net/URL;)Landroid/graphics/Bitmap;

    move-result-object v1

    invoke-virtual {v0, v1}, Lcom/baidu/App$Snag;->setFullBmp(Landroid/graphics/Bitmap;)V

    iget-object v0, p0, Lcom/baidu/ao;->a:Lcom/baidu/an;

    iget-object v0, v0, Lcom/baidu/an;->b:Lcom/baidu/aj;

    iget-object v0, v0, Lcom/baidu/aj;->b:Lcom/baidu/AppActivity;

    const/4 v1, 0x0

    invoke-static {v0, v1}, Lcom/baidu/AppActivity;->a(Lcom/baidu/AppActivity;Z)V
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    :cond_0
    :goto_0
    iget-object v0, p0, Lcom/baidu/ao;->a:Lcom/baidu/an;

    iget-object v0, v0, Lcom/baidu/an;->b:Lcom/baidu/aj;

    iget-object v0, v0, Lcom/baidu/aj;->b:Lcom/baidu/AppActivity;

    invoke-static {v0}, Lcom/baidu/AppActivity;->d(Lcom/baidu/AppActivity;)Landroid/os/Handler;

    move-result-object v0

    new-instance v1, Lcom/baidu/ap;

    invoke-direct {v1, p0}, Lcom/baidu/ap;-><init>(Lcom/baidu/ao;)V

    invoke-virtual {v0, v1}, Landroid/os/Handler;->post(Ljava/lang/Runnable;)Z

    return-void

    :catch_0
    move-exception v0

    iget-object v1, p0, Lcom/baidu/ao;->a:Lcom/baidu/an;

    iget-object v1, v1, Lcom/baidu/an;->b:Lcom/baidu/aj;

    iget-object v1, v1, Lcom/baidu/aj;->b:Lcom/baidu/AppActivity;

    invoke-static {v1, v4}, Lcom/baidu/AppActivity;->a(Lcom/baidu/AppActivity;Z)V

    invoke-static {v0}, Lcom/baidu/bk;->a(Ljava/lang/Throwable;)I

    goto :goto_0
.end method
